package com.example.LifeCycle.BeanPostProcessor;

import com.example.LifeCycle.commons.Color;
import com.example.LifeCycle.commons.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Date 2024/5/15 10:42
 * @Created by houjunfeng
 */
@Configuration
@ComponentScan("com.example.LifeCycle.BeanPostProcessor")
public class BeanPostProcessorConfigeration {
    @Bean(name="Color",initMethod = "init",destroyMethod = "destory")
    public Color getPerson(){
        return  new Color();
    }
}
